<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="init.jsp" %>
<%@ taglib uri="controls" prefix="z"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>教员信息审核</title>
		<script src="${ctx}/common/js/pagebar.js" type="text/javascript"></script>
		<script type="text/javascript">
			jQuery(document).ready(function(){ 
					initPage();
				    createFillTr(${page.pageSize});
			 });
			
			//删除教员信息
			 function del(id){
			 	jConfirm("您确定删除该教员信息吗？","删除教员信息",function(flag){
	 				if(flag) {
		 				jQuery("#mainForm")[0].action="teacher!delete.action";
		 				jQuery("#mainForm input[@type=hidden]")[0].value=id;
		 				jQuery("#mainForm")[0].submit();
	 				}
			 	});
			 }
			 
			//通过审核
			  function check(id){
			 	jConfirm("您确定通过该教员信息审核吗？","审核教员信息",function(flag){
	 				if(flag) {
		 				jQuery("#mainForm")[0].action="teacher!check.action";
		 				jQuery("#mainForm input[@type=hidden]")[0].value=id;
		 				jQuery("#mainForm")[0].submit();
	 				}
			 	});
			 }
			  
			 function find(){
			 	jQuery("#mainForm")[0].submit();
			 }
			 
			 
    </script>
    
<style type="text/css">
	.sel-disabled{background-color:#ccc}
</style>

	</head>	
	<body>
		<form id="mainForm" action="teacher!uncheck.action" method="post">
			<input type="hidden" name="id" value="${id }"/>
			<table width="100%" border="0" cellspacing="6" cellpadding="0"
				style="border-collapse: separate; border-spacing: 6px;">
				
				
				<tr valign="top">
					<td>
					
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="${ctx}/common/image/admin/tab_03.gif" width="15" height="30" /></td>
        <td background="${ctx}/common/image/admin/tab_05.gif">
        	<table border="0" cellpadding="0" cellspacing="0" width="100%">
				<tr>
					<td>
						<img src="${ctx}/common/image/admin/311.gif" width="16" height="16" /><strong>&nbsp;&nbsp;未通过审核教员列表</strong>
					</td>
					<td>
						
					</td>
					<td align="right">
					 
					</td>
				</tr>
				</table>
        				
         </td>
        <td width="14"><img src="${ctx}/common/image/admin/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table>
    </td>
  </tr>
  
  <tr>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="${ctx}/common/image/admin/tab_12.gif">&nbsp;</td>
        <td bgcolor="e5f1d6">
	   </td>
       <td width="9" background="${ctx}/common/image/admin/tab_16.gif">&nbsp;</td>
      </tr>
      <tr>
        <td width="9" background="${ctx}/common/image/admin/tab_12.gif">&nbsp;</td>
        <td bgcolor="e5f1d6">
	       <table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tr>
					<td>
					&nbsp;&nbsp;&nbsp;&nbsp;教员姓名:&nbsp;&nbsp;
						<input type="text" name="filter_realname" size="20" />
					</td>
					<td>
					</td>
					<td >
					 <z:tbutton id="BtnAddr" priv="article_modify2"
								onClick="find()">
								<img src="${ctx}/common/image/admin/icon403a3.gif" height="20" />查询
					        </z:tbutton>
					</td>
				</tr>
				</table>
	   </td>
       <td width="9" background="${ctx}/common/image/admin/tab_16.gif">&nbsp;</td>
      </tr>
      <tr>
        <td width="9" background="${ctx}/common/image/admin/tab_12.gif">&nbsp;</td>
        <td bgcolor="e5f1d6">
	   </td>
       <td width="9" background="${ctx}/common/image/admin/tab_16.gif">&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
  
  
   <tr>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="${ctx}/common/image/admin/tab_12.gif">&nbsp;</td>
        <td bgcolor="e5f1d6">
	        <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CECECE" onmouseover="changeto()"  onmouseout="changeback()">
	          <tr>
	            <td width="5%" height="26" background="${ctx}/common/image/admin/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2 STYLE1">教员号</div></td>
	            <td width="5%" height="26" background="${ctx}/common/image/admin/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2 STYLE1">姓名</div></td>
	            <td width="20%" height="18" background="${ctx}/common/image/admin/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2 STYLE1">身份</div></td>
	            <td width="10%" height="18" background="${ctx}/common/image/admin/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2 STYLE1">注册时间</div></td>
	            <td width="35%" height="18" background="${ctx}/common/image/admin/tab_14.gif" class="STYLE1"><div align="center" class="STYLE2">操作选项</div></td>
	          </tr>
	          
	          <s:iterator value="page.result">
				<tr  id="${id}"	>
				    <td height="18" bgcolor="#FFFFFF" class="STYLE2"><div align="center" class="STYLE2 STYLE1">${id }</div></td>
					<td height="18" bgcolor="#FFFFFF" class="STYLE2"><div align="center" class="STYLE2 STYLE1">${realname }</div></td>
					<td height="18" bgcolor="#FFFFFF" class="STYLE2"><div align="left" class="STYLE2 STYLE1">
							<s:if test="indentityFlag eq 1">
							在校大学生
							</s:if>
								<s:elseif test="indentityFlag eq 2 ">
							教师
							</s:elseif>
								<s:elseif test="indentityFlag eq 3 ">
							外籍人士
							</s:elseif>
							<s:elseif test="indentityFlag eq 4">
								其他(已经毕业离校的人员)
							</s:elseif>
						</div>
					</td>
					<td height="18" bgcolor="#FFFFFF" class="STYLE2"><div align="center" class="STYLE2 STYLE1">${regtime }</div></td>
					<td height="18" bgcolor="#FFFFFF">
						<div align="center">
							<img src="${ctx}/common/image/admin/a1.gif" width="9" height="9" /><span class="STYLE1"> [</span><a href="${ctx }/admin/teacher!detail.action?id=${id}" target="_blank">查看简历</a><span class="STYLE1">]</span>
							<span class="STYLE2"><img src="${ctx}/common/image/admin/a1.gif" width="9" height="9" /> </span><span class="STYLE1">[</span><a href="${ctx }/admin/teacher!photo.action?id=${id}" target="_blank">查看照片</a><span class="STYLE1">]</span>
	              			 <span class="STYLE2"><img src="${ctx}/common/image/admin/037.gif" width="9" height="9" /> </span><span class="STYLE1">[</span><a href="#" onclick="check(${id });">通过审核</a><span class="STYLE1">]</span>
	              			 <span class="STYLE2"><img src="${ctx}/common/image/admin/010.gif" width="9" height="9" /> </span><span class="STYLE1">[</span><a href="#" onclick="del(${id });">删除</a><span class="STYLE1">]</span>
	              			</div></td>    
				</tr>
			</s:iterator>
	          
	       </table>
	   </td>
       <td width="9" background="${ctx}/common/image/admin/tab_16.gif">&nbsp;</td>
      </tr>
    </table>
    </td>
  </tr>
  <tr>
    <td height="29">
	    <table width="100%" border="0" cellspacing="0" cellpadding="0">
	      <tr>
	        <td width="15" height="29"><img src="${ctx}/common/image/admin/tab_20.gif" width="15" height="29" /></td>
	        <td>
	         <z:pageBar id="_PageBar_Index"/>
			</td>
	        <td width="14"><img src="${ctx}/common/image/admin/tab_22.gif" width="14" height="29" /></td>
	      </tr>
	    </table>
	</td>
  </tr>
</table>
		 </td>
		</tr>	
	 </table>		
				<table  width="98%" align="center">
					<div id="explain"> 
                    <p> 
                     <b>功能说明：</b><br /> 
                           实现对教员信息的维护。<br /> 
                    <p> 
                     <b>使用帮助：</b><br /> 
                        在<教员姓名>后面的框内分别输入相对应的教员姓名，点击'查询'按钮进行查看教员的相关信息。
                        点击‘修改’和‘删除’按钮，分别对教员信息进行修改和删除。删除掉的数据将无法恢复，切忌一定要三思而后行。
                         点击第一页、上一页、下一页、最末页，进行翻页查看数据。<br />  
                </div> 		
			</table>
		</form>
	</body>
</html>